
package org.finesys.boot;

import org.finesys.common.security.core.annotation.EnableAuthResourceServer;
import org.finesys.common.websocket.annotation.EnableWebSocket;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@EnableAuthResourceServer
@SpringBootApplication(scanBasePackages = {"org.finesys", "org.finesys.auth", "org.finesys.quartz","org.finesys.system","org.finesys.boot"})
//实际单体项目无需开启feign，如果要使用Feign客户端调用其他服务，则需要开启此注解。
//单体项目中api结尾的feign调用，应该改为具体的服务调用，而非Feign客户端。
@MapperScan(basePackages = {"org.finesys.quartz.mapper", "org.finesys.*.*.mapper"})
@EnableWebSocket
public class SpringBootServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootServerApplication.class, args);
    }
}
